package com.puppet.building182.handler;

import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.metadata.GlobalConfiguration;
import com.alibaba.excel.metadata.data.WriteCellData;
import com.alibaba.excel.metadata.property.ExcelContentProperty;
import com.alibaba.fastjson2.JSON;

public class HouseConverter implements Converter<Object> {
    @Override
    public WriteCellData<?> convertToExcelData(Object value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception {
        String jsonStr= JSON.toJSONString(value);
        return new WriteCellData<>(jsonStr);
    }
}
//文件导出处理